package com.likersai.funa.constant;

/**
 * 请求返回标志枚举值
 *
 * @author sun.ye
 * @since 2021-01-13 23:31
 */
public enum ResponseMsg implements MsgAndCode {

    /**
     * 请求返回标志枚举值
     */
    SUCCESS("0000","成功","一如既往，优秀的接口！"),

    FAILURE_PARAM_VALID("9001","参数校验失败","未通过参数校验，请仔细阅读接口文档并检查入参！"),

    FAILURE("9000","失败","你会不会用啊，烦死了！");


    private final String code;
    private final String name;
    private final String message;

    ResponseMsg(String code, String name, String message) {
        this.code = code;
        this.name = name;
        this.message = message;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
